<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery.js"></script>
<style>
#nav{background: #FFF; min-width: 800px;}
.nav{display: block;list-style: none;margin: 0;padding: 0;}
.nav li{display: inline-block;}
.nav li a{padding: 8px 7px 5px 7px; color: #3E3E3E; font-size: 14px; font-weight: bold;}
.nav li a:hover{color: #6E6E6E; background: #FFF;}

#logo{height: 120px; min-width: 800px;}
.line{border: 1px solid #000;}
.line_b{border-bottom: 1px solid #000;}
</style>
<script type="text/javascript">
$(window).resize(function() {
    var width = $(this).width();
    $("#win").html(width);
    var height = $(this).height();
});
</script>
<title>Insert title here</title>
</head>
<body>
	<div id="nav" class="line_b" style="-webkit-box-shadow: 0px 2px 5px rgba(0, 0, 0, .6);">
		<div>
			<ol class="nav left">
				<li><a href="index"><span>首页</span></a></li>
			</ol>
		</div>
		<div class="right">
			<ol class="nav">
				<s:if test="#session.user != null">
					<li><a href="loginout"><span>登出</span></a></li>
					<li><a href="#"><span>设置</span></a></li>
				</s:if>
				<s:else>
					<li><a href="login"><span>登录</span></a></li>
					<li><a href="register"><span>注册</span></a></li>
				</s:else>
			</ol>
		</div>
		<div class="clear"></div>
	</div>
	<div id="logo" class="line">
	</div>